import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.asset
// 分页查询
export function queryPageList(query) {
  return post(BASE_URL + '/assetsNetEquipment/list', query)
}
export function entityTree(id) {
  return get(BASE_URL + '/assetsOrg/treeselect', { id })
}

export function listAll(ids) {
  return get(BASE_URL + '/dictItems/listByTypes', { ids })
}

// 查询user
export function queryUserList(id) {
  return get(BASE_URL + '/assetsUser/list', { id })
}
export function addDatas(query) {
  return post(BASE_URL + '/assetsNetEquipment/add', query)
}

export function queryById(id) {
  return get(BASE_URL + '/assetsNetEquipment/detail', { id })
}
export function editDatas(query) {
  return post(BASE_URL + '/assetsNetEquipment/update', query)
}

export function deleteDatas(ids) {
  return get(BASE_URL + '/assetsNetEquipment/deleteBatch', { ids })
}

export function queryByOrder(query) {
  return get(BASE_URL + '/assetsNetEquipment/queryByOrder', query)
}
